package com.po;

/**
 * AbstractBaseCatalogId entity provides the base persistence definition of the
 * BaseCatalogId entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractBaseCatalogId implements java.io.Serializable {

	// Fields

	private String cataId;
	private String cataType;

	// Constructors

	/** default constructor */
	public AbstractBaseCatalogId() {
	}

	/** full constructor */
	public AbstractBaseCatalogId(String cataId, String cataType) {
		this.cataId = cataId;
		this.cataType = cataType;
	}

	// Property accessors

	public String getCataId() {
		return this.cataId;
	}

	public void setCataId(String cataId) {
		this.cataId = cataId;
	}

	public String getCataType() {
		return this.cataType;
	}

	public void setCataType(String cataType) {
		this.cataType = cataType;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractBaseCatalogId))
			return false;
		AbstractBaseCatalogId castOther = (AbstractBaseCatalogId) other;

		return ((this.getCataId() == castOther.getCataId()) || (this
				.getCataId() != null
				&& castOther.getCataId() != null && this.getCataId().equals(
				castOther.getCataId())))
				&& ((this.getCataType() == castOther.getCataType()) || (this
						.getCataType() != null
						&& castOther.getCataType() != null && this
						.getCataType().equals(castOther.getCataType())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getCataId() == null ? 0 : this.getCataId().hashCode());
		result = 37 * result
				+ (getCataType() == null ? 0 : this.getCataType().hashCode());
		return result;
	}

}